<template>
  <div>
    <!-- -----------------查询---------------------------- -->

    <!-- ------------------列表------------------ -->
    <el-table :data="CompanyStreamList" border style="width: 100%">
      <el-table-column prop="companyStreamId" label="编号" width="180"></el-table-column>
      <el-table-column prop="companyStreamType" label="转入转出类型" width="180">
      </el-table-column>
      <el-table-column prop="companyStreamTime" label="时间"> </el-table-column>
      <el-table-column prop="accountFundsAccount" label="用户账户"> </el-table-column>
      <el-table-column prop="companyAccountFundsNo" label="公司账户"> </el-table-column>
      <el-table-column prop="companyStreamMoney" label="金额"> </el-table-column>
      <el-table-column prop="companyStreamDesc" label="备注"> </el-table-column>
    </el-table>
       <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="this.query.currentPage"
      :page-sizes="this.pageInfo.pageSizes"
      :page-size="this.query.pageSize"
      layout="total, sizes, prev, pager, next, jumper"
      :total="this.pageInfo.total"
    >
    </el-pagination>
  </div>
</template>

<script>
export default {
  data() {
    return {
      CompanyStreamList:[],
       pageInfo: {
        total: 0,
        pageSizes: [5, 10, 20, 50],
      },
      query: {
        pageSize: 5,
        currentPage: 1,
        realName: "",
        dateRange: [],
      },
    };
  },
  methods: {
     loadCompanyStream() {
      this.$axios.post("Comanys/queryAll",this.query).then((res) => {
        this.CompanyStreamList = res.data.data.CompanyStreamList;
        this.pageInfo.total = res.data.data.total;
      });
    },
  },
  mounted() {
    this.loadCompanyStream();
  },
};
</script>